package top.lingkang.securityoauth2.core.entity;

import top.lingkang.securityoauth2.core.entity.UserDetail;

/**
 * @author lingkang
 * Created by 2022/7/1
 */
public class DefaultUserDetail implements UserDetail {
    private String username;
    private String status;
    private String[] role;

    public DefaultUserDetail(String username, String status, String[] role) {
        this.username = username;
        this.status = status;
        this.role = role;
    }

    @Override
    public String getUsername() {
        return username;
    }

    @Override
    public String getStatus() {
        return status;
    }

    @Override
    public String[] getRole() {
        return role;
    }
}
